<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>${config.siteName!} - 管理中心</title>
    <meta name="renderer" content="webkit|ie-comp|ie-stand">
    <meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
    <meta name="viewport"
          content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi"/>
    <link rel="shortcut icon" href="/static/favicon.ico" type="image/x-icon"/>
    <link rel="stylesheet" href="/static/css/font.css">
    <link rel="stylesheet" href="/static/css/xadmin.css">
    <script type="text/javascript" charset="utf-8" src="/static/js/jquery-1.11.3.min.js"></script>
    <script src="/static/lib/layui/layui.js" charset="utf-8"></script>
    <script type="text/javascript" src="/static/js/xadmin.js"></script>
    <script src="https://open.mobile.qq.com/sdk/qqapi.js?_bid=152"></script>
    <!--<script src="/static/js/qq.js"></script>-->
</head>
<body>
<!-- 顶部开始 -->
<div class="container">
    <div class="logo"><a href="/admin">管理中心</a></div>
    <div class="left_open">
        <i title="展开左侧栏" class="iconfont">&#xe699;</i>
    </div>
    <ul class="layui-nav right" >
        <li class="layui-nav-item to-index"><a href="/index.do" target="_blank">官网首页</a></li>
        <li class="layui-nav-item to-index"><a href="/doc.do" target="_blank">开发文档</a></li>
        <li class="layui-nav-item to-index"><a href="/quickpass?id=${user.id!}" target="_blank">个人快捷收款页</a></li>
        <li class="layui-nav-item">
            <a href="javascript:void(0);">${user.showname!''}</a>
            <dl class="layui-nav-child"> <!-- 二级菜单 -->
                <!--<dd><a onclick="x_admin_show('个人信息','http://www.baidu.com')">个人信息</a></dd>-->
                <dd><a href="javascript:void(0);" onclick="log_out_111();">退出</a></dd>
            </dl>
        </li>
    </ul>

</div>
<div class="left-nav">
    <div id="side-nav">
        <ul id="nav">
            <%for(o in menu!){%>
                <li>
                    <a _href="${o.funPath!}">
                        <i class="iconfont">&#xe723;</i>
                        <cite>${o.funName!}</cite>
                        <%if(!isEmpty(o.sub_menu!)){%>
                            <i class="iconfont nav_right">&#xe697;</i>
                        <%}%>
                    </a>
                    <%if(!isEmpty(o.sub_menu!)){%>
                        <ul class="sub-menu">
                            <%for(o2 in o.sub_menu!){%>
                                <li>
                                    <a _href="${o2.funPath!}">
                                        <i class="iconfont">&#xe6a7;</i>
                                        <cite>${o2.funName!}</cite>
                                    </a>
                                </li>
                            <%}%>
                        </ul>
                    <%}%>
                </li>
            <%}%>
        </ul>
    </div>
</div>
<div class="page-content">
    <%if(user.role! == 1){%>
    <div class="layui-tab tab" lay-filter="xbs_tab" lay-allowclose="false">
        <ul class="layui-tab-title">
            <li>首页</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <iframe src='/admin/welcomepage' frameborder="0" scrolling="yes" class="x-iframe"></iframe>
            </div>
        </div>
    </div>
    <%}else{%>
    <div class="layui-tab tab" lay-filter="xbs_tab" lay-allowclose="false">
        <ul class="layui-tab-title">
            <li>用户中心</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                <iframe src='/admin/user/info' frameborder="0" scrolling="yes" class="x-iframe"></iframe>
            </div>
        </div>
    </div>
    <%}%>
</div>
<div class="page-content-bg"></div>
<div class="footer">
    <div class="copyright">Copyright ©2018 <span>${config.siteName!}</span> All Rights Reserved&nbsp;&nbsp;&nbsp;技术支持&nbsp;QQ:&nbsp;929512841</div>
</div>
<script>
    function log_out_111() {
        layer.confirm("确认要退出吗?", function () {
            $.post("/admin/logout/ajax",
                {"times": new Date().getTime()},
                function (data) {
                    layer.msg(data.msg);
                    setTimeout(function () {
                        location.href = "/admin/login?times=" + new Date().getTime();
                    }, 800);
                }, "json");
        });
    }

</script>
</body>
</html>